package com.example.smartcity_poverty.logic.network

import com.example.smartcity_poverty.logic.model.TakeOutModel.ToBannerModel
import com.example.smartcity_poverty.logic.model.TakeOutModel.ToServiceModel
import com.example.smartcity_poverty.logic.model.TakeOutModel.ToShopModel
import retrofit2.http.GET
import retrofit2.http.Query

/**
 *  ANDROID STUDIO -VERSION 4.0
 *  email: 2506789532@qq.com
 *  CodeAuthor： Ikun
 *
 *  explain: 外卖订餐API
 **/
interface TakeOutApi {

    // 获取轮播图数据
    @GET("/prod-api/api/takeout/rotation/list")
    suspend fun getToHomeBanner() : ToBannerModel

    // 外卖主题接口 (查询主题分类)
    @GET("/prod-api/api/takeout/theme/list")
    suspend fun getToHomeService() : ToServiceModel

    // 查询店家列表
    @GET("/prod-api/api/takeout/seller/list")
    suspend fun getShopList(@Query("recommend") recommend: String = "") : ToShopModel
}